package com.hech.hmall.util;

import com.hech.hmall.entity.UserEntity;

/**
 * @author hanjiafeng
 * @date 2021/5/7 8:58
 * @desc todo
 */
public class SystemUtil {
    private static UserEntity loginUser;

    public static UserEntity getLoginUser() {
        return loginUser;
    }

    public static void setLoginUser(UserEntity userEntity) {
        userEntity.setPassword(null);
        loginUser = userEntity;
    }
}
